home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / BattleView / Ship.h < prev    next >
Text File  |  1994-05-04  |  1KB  |  42 lines

  1. /* Ship.h -- interface for ship objects
  2.    Copyright (C) 1992, 1993 David A. Strout
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2, or (at your option)
  7.    any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Written by David Strout <dstrout@isi.edu>. */
  19.  
  20.  
  21. #import "SpaceThing.h"
  22. #import "Misc.h"
  23.  
  24.  
  25. @interface Ship:SpaceThing
  26. {
  27.   id  ship[8], explosion[8]; /* The graphics */
  28.   id backGround; 
  29.   id view;
  30.   int damage; /* damage=0 means destroyed */
  31. }
  32.  
  33. - initOnSide:(int)side;
  34. - beginLife;
  35. - drawSelf;
  36. - takeHitForPoints:(int)num;
  37.  
  38. - (int)damage;
  39.  
  40. @end
  41.  
  42.